const baseURL = ''
export function request({
 url,
 method = "GET",
 data
}) {
 return new Promise((resolve, reject) => {
 wx.request({
 url: baseURL + url,
 method,
 data,
 success(res) {
 resolve(res)
 },
 fail(err) {
 reject(err)
 }
 })
 })
}